#pragma once
#include "afxcmn.h"
#include "resource.h"
#include "_GraphPropertiesMinMax.h"
#include "_GraphPropertiesAppearance.h"
#include "_GraphPropertiesMarker.h"

// _GraphPropertyDialog dialog

class _GraphControl;

class _GraphPropertyDialog : public CDialogEx
{
	DECLARE_DYNAMIC(_GraphPropertyDialog)

public:
	_GraphPropertyDialog(CWnd* pParent = NULL);   // standard constructor
	virtual ~_GraphPropertyDialog();
	void setGraphControlHandle(int Handle)
	{
		m_GraphControlHandle = Handle;
		m_PropertiesMinMax.setGraphControlHandle(Handle);
		m_PropertiesAppearance.setGraphControlHandle(Handle);
		m_PropertiesMarker.setGraphControlHandle(Handle);
	}

// Dialog Data
	enum { IDD = IDD_FLEX_GRAPH_PROPERTIES };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()
public:
	CTabCtrl m_TabProperties;
	int m_GraphControlHandle;
	_GraphPropertiesMinMax m_PropertiesMinMax;
	_GraphPropertiesAppearance m_PropertiesAppearance;
	_GraphPropertiesMarker m_PropertiesMarker;
	_GraphControl* m_pGraphControl;
	void setGraphControlPtr(_GraphControl* pGraphControl)
	{
		m_pGraphControl = pGraphControl;
		m_PropertiesAppearance.m_pGraphControl = pGraphControl;
		m_PropertiesMinMax.m_pGraphControl = pGraphControl;
		m_PropertiesMarker.m_pGraphControl = pGraphControl;
	}
	virtual BOOL OnInitDialog();
	afx_msg void OnSelchangeTabProperties(NMHDR *pNMHDR, LRESULT *pResult);
};
